home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / comm / pf270.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1992-03-17  |  10KB  |  195 lines

  1. @echo off
  2. rem
  3. rem +-----------------------------------------+
  4. rem !   Port Finder Install Batch File        !
  5. rem !   Copyright (c) 1990 mcTRONic Systems   !
  6. rem !   Revised on: August 7, 1990            !
  7. rem !   File Name: INSTALL.BAT                !
  8. rem +-----------------------------------------+
  9. rem
  10.  
  11. cls
  12. echo ╔═══════════════════════════════════════════════════════════════════════╗
  13. echo ║                                                                       ║
  14. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  15. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  16. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  17. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  18. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  19. echo ║                                                                       ║
  20. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  21. echo ║                                                                       ║
  22. if exist BH.COM bh ^
  23. if errorlevel 1 goto dosok
  24. goto baddosver
  25. :dosok
  26. if NOT exist INSTALL.BAT goto c_error
  27. if "%1"=="" goto a_error
  28. for %%c in (a: A: b: B:) do if %1==%%c goto d_error
  29. for %%c in (Help HELP help ?) do if %1==%%c goto help
  30. if NOT exist %1\nul goto b_error
  31.  
  32. :start
  33. echo ╠═══════════════════════════════════════════════════════════════════════╝
  34. echo ║   Install PORT FINDER in: %1\PORTFIND
  35. echo ╠═══════════════════════════════════════════════════════════════════════╗
  36. echo ║                                                                       ║
  37. echo ║ This batch file will install  Port Finder and all of its files on the ║
  38. echo ║ Hard Disk you have specified above.   Would you like to continue with ║
  39. echo ║ this installation? (Yes/No)                                           ║
  40. echo ║                                                                       ║
  41. echo ╚═══════════════════════════════════════════════════════════════════════╝
  42. bh YN
  43. if errorlevel 2 install help
  44. cls
  45. echo ╔═══════════════════════════════════════════════════════════════════════╗
  46. echo ║                                                                       ║
  47. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  48. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  49. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  50. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  51. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  52. echo ║                                                                       ║
  53. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  54. echo ║                                                                       ║
  55. echo ╠═══════════════════════════════════════════════════════════════════════╣
  56. echo ║                                                                       ║
  57. if exist %1\portfind\pf.com goto update
  58. echo ║    Port Finder installation now in progress.  Please stand by ....    ║
  59. echo ║                                                                       ║
  60. echo ╚═══════════════════════════════════════════════════════════════════════╝
  61. goto cont
  62.  
  63. :update
  64. echo Y|del %1\portfind\*.* >nul
  65. echo ║       Port Finder update now in progress.  Please stand by ....       ║
  66. echo ║                                                                       ║
  67. echo ╚═══════════════════════════════════════════════════════════════════════╝
  68.  
  69. :cont
  70. if NOT exist %1\PORTFIND\nul md %1\PORTFIND >nul
  71. if exist pf.com copy *.com %1\PORTFIND >nul
  72. if exist pf.sys copy pf.sys %1\PORTFIND >nul
  73. if exist pf.pif copy *.pif %1\PORTFIND >nul
  74. if exist pf.doc copy *.doc %1\PORTFIND >nul
  75. if exist printdoc.bat copy printdoc.bat %1\PORTFIND >nul
  76. %1\PORTFIND\
  77. cd %1\PORTFIND
  78.  
  79. CLS
  80. echo ╔═══════════════════════════════════════════════════════════════════════╗
  81. echo ║                                                                       ║
  82. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  83. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  84. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  85. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  86. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  87. echo ║                                                                       ║
  88. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  89. echo ║                                                                       ║
  90. echo ╠═══════════════════════════════════════════════════════════════════════╣
  91. echo ║                                                                       ║
  92. echo ║ Port Finder is now installed on your hard drive along with all of its ║
  93. echo ║ support files.   To print out the  Port Finder manual type "PRINTDOC" ║
  94. echo ║ at the DOS prompt.  If this is a Shareware copy please register  your ║
  95. echo ║ copy if you decide to use Port Finder.    To run Port Finder you must ║
  96. echo ║ change to the installed directory and enter "PF".      You should add ║
  97. echo ║ Port Finder to your AUTOEXEC.BAT file or your CONFIG.SYS file.    See ║
  98. echo ║ the Port Finder Documentation for more information.      Thank You !! ║
  99. echo ║                                                                       ║
  100. echo ╚═══════════════════════════════════════════════════════════════════════╝
  101. echo    CHANGE TO "%1\PORTFIND" AND ENTER "PF"
  102. echo ═════════════════════════════════════════════════════════════════════════
  103.  
  104. :wantdoc
  105. pause
  106. cls
  107. echo    ╔══════════════════════════════════════════════════════╗
  108. echo    ║                                                      ║
  109. echo    ║   Would you like to run the  Port Finder  Document   ║
  110. echo    ║   Display and Print Utility PRINTDOC NOW (Yes/No)?   ║
  111. echo    ║                                                      ║
  112. echo    ╚══════════════════════════════════════════════════════╝
  113. bh yn
  114. if errorlevel 2 goto done
  115. if errorlevel 1 printdoc
  116. GOTO DONE
  117.  
  118. :help
  119. echo ╠═══════════════════════════════════════════════════════════════════════╣
  120. goto e_error
  121.  
  122. :baddosver
  123. echo ╠═══════════════════════════════════════════════════════════════════════╣
  124. echo ║                                                                       ║
  125. echo ║  PROBLEM: Incorrect DOS Version.  DOS 3.3 or higher is required!      ║
  126. goto e_error
  127.  
  128. :a_error
  129. echo ╠═══════════════════════════════════════════════════════════════════════╣
  130. echo ║                                                                       ║
  131. echo ║  This INSTALL.BAT file needs to know what  Hard Drive you want to     ║
  132. echo ║  install  Port Finder  on.    ALL Hard Disk Drive Letters  can be     ║
  133. echo ║  entered at the DOS prompt.  If your HARD DRIVE is C:, D:, E:, F:     ║
  134. echo ║  or G: and the predefined subdirectory name PORTFIND  is OK, then     ║
  135. echo ║  enter the Listed Hard Drive Letter to use, or press Q to Quit.       ║
  136. echo ║                                                                       ║
  137. echo ╚═══════════════════════════════════════════════════════════════════════╝
  138. bh CDEFGQ
  139. if errorlevel 6 goto nodrive
  140. if errorlevel 5 INSTALL G:
  141. if errorlevel 4 INSTALL F:
  142. if errorlevel 3 INSTALL E:
  143. if errorlevel 2 INSTALL D:
  144. if errorlevel 1 INSTALL C:
  145.  
  146. :nodrive
  147. cls
  148. echo ╔═══════════════════════════════════════════════════════════════════════╗
  149. echo ║                                                                       ║
  150. echo ║  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▄  ▒▒▒▒▒▄    ▒▒▒▒▄ ▒▒▒▄ ▒▒▄ ▒▄ ▒▒▒▒▄  ▒▒▒▒▄ ▒▒▒▒▄  ║
  151. echo ║  ▒█▀▒█  ▒█▀▒█  ▒█▀▒█   ▀▒█▀▀    ▒█▀▀▀  ▒█▀ ▒█▒▄▒█ ▒█▀▀▒▄ ▒█▀▀▀ ▒█▀▒█  ║
  152. echo ║  ▒▒▒▒█  ▒█ ▒█  ▒▒▒▄▀    ▒█      ▒▒▒▄   ▒█  ▒█▒█▒█ ▒█  ▒█ ▒█▀▀  ▒▒▒▄▀  ║
  153. echo ║  ▒█▀▀▀  ▒▒▒▒█  ▒█▀▒▄    ▒█      ▒█▀▀  ▒▒▒▄ ▒█ ▒▒█ ▒▒▒▒▄▀ ▒▒▒▒▄ ▒█▀▒▄  ║
  154. echo ║   ▀      ▀▀▀▀   ▀  ▀     ▀       ▀     ▀▀▀  ▀  ▀▀  ▀▀▀▀   ▀▀▀▀  ▀  ▀  ║
  155. echo ║                                                                       ║
  156. echo ║           The Number ONE Shareware COM and LPT Port Utility           ║
  157. echo ║                                                                       ║
  158. echo ╠═══════════════════════════════════════════════════════════════════════╣
  159. echo ║                                                                       ║
  160. echo ║  PROBLEM: What is your TARGET Drive ?  A TARGET Drive is required!    ║
  161. goto e_error
  162.  
  163. :b_error
  164. echo ╠═══════════════════════════════════════════════════════════════════════╣
  165. echo ║                                                                       ║
  166. echo ║  PROBLEM: The drive\directory Specified DOES NOT EXIST!               ║
  167. goto e_error
  168.  
  169. :c_error
  170. echo ╠═══════════════════════════════════════════════════════════════════════╣
  171. echo ║                                                                       ║
  172. echo ║  PROBLEM: "INSTALL.BAT" is NOT Located in the Default Drive!          ║
  173. goto :e_error
  174.  
  175. :d_error
  176. echo ╠═══════════════════════════════════════════════════════════════════════╣
  177. echo ║                                                                       ║
  178. echo ║  PROBLEM: Floppy Disk installation not required.  For Hard Disk Only! ║
  179.  
  180. :e_error
  181. echo ║                                                                       ║
  182. echo ║  Syntax: "INSTALL d:[\path]"                                          ║
  183. echo ║                                                                       ║
  184. echo ║  This INSTALL  batch file must be located in the default drive.  The  ║
  185. echo ║  target disk drive d is a required parameter and must be a HARD DISK  ║
  186. echo ║  DRIVE while the  \path  is optional.  The  final sub-directory will  ║
  187. echo ║  always be named PORTFIND.  INSTALL C:   will install Port Finder in  ║
  188. echo ║  C:\PORTFIND.    INSTALL C:\UTILITY  will  install  Port  Finder  in  ║
  189. echo ║  C:\UTILITY\PORTFIND. Please rerun INSTALL with required parameters.  ║
  190. echo ╚═══════════════════════════════════════════════════════════════════════╝
  191. goto wantdoc
  192.  
  193. :done
  194. cls
  195.